<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <link rel="stylesheet" href="/static/styles.css">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Python智能取名系统</title>
  <style>
    /* 简化样式，实际项目可引入Tailwind CSS */
    body { font-family: "Microsoft YaHei", sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; }
    .form-group { margin-bottom: 15px; }
    button { padding: 8px 15px; background-color: #4CAF50; color: white; border: none; cursor: pointer; }
    .result-item { border: 1px solid #ddd; padding: 15px; margin-bottom: 10px; border-radius: 5px; }
  </style>
</head>
<body>
  <h1>Python大语言模型取名系统</h1>
  
  <form id="nameForm">
    <div class="form-group">
      <label for="surname">姓氏：</label>
      <input type="text" id="surname" name="surname" required>
    </div>
    <div class="form-group">
      <label for="gender">性别：</label>
      <select id="gender" name="gender">
        <option value="男">男</option>
        <option value="女">女</option>
        <option value="不限">不限</option>
      </select>
    </div>
    <div class="form-group">
      <label for="birthDate">出生日期：</label>
      <input type="data" id="birthDate" name="birthDate" required>
    </div>
    <div class="form-group">
      <label for="expectation">期待：</label>
      <input type="text" id="expectation" name="expectation" required>
    </div>
    <button type="submit">生成名字</button>
  </form>
  
  <div id="loading" style="display: none;">加载中...</div>
  <div id="results"></div>
  
  <script src="/static/scripts.js"></script>
</body>
</html>
